import request from '@/utils/request'

export default{

  //分页查询圈子的方法
  getGroupList(page,size){
      return request({
          url: `/edu/groupFront/getgroupInfoList/${page}/${size}`,
          method: 'get'
      })
  },
 
  //查看话题列表的方法
    getTopicList(page,size){
      return request({
          url: `/edu/topicFront/gettopicInfoList/${courseId}/${page}/${size}`,
          method: 'get'
      })
  },

  //获取圈子详情
  getGroupInfo(groupId){
      return request(
          {
            url: `/edu/groupFront/getgroupFrontInfo/${groupId}`,
            method: 'get'
          }
      )
  },
  
    //提交课程圈子话题的方法
    submitTopic(formItem) {
      return request({
        url: `/group/addtopic`,
        method: 'post',
        data: formItem
      })
    },
        //提交课程评论的方法
        submitComment(formItem) {
          return request({
            url: `/group/addcomment`,
            method: 'post',
            data: formItem
          })
        },
}